package com.bank.user.service.client;

import com.bank.model.entity.Deposit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/3/30 15:21
 */
@FeignClient(name = "service-basic-deposit", url = "http://localhost:8081/basic/deposit")
@Component
public interface DepositService {
    @GetMapping("/list")
    public List<Deposit> queryAll();
    @GetMapping("/account/money")
    public Double getAccountMoney(@RequestParam String accountId);
    @GetMapping("/user/money")
    public Double getUserMoney(@RequestParam Long userId);
}
